package com.zhoushihao.class0819;

import java.io.BufferedWriter;
import java.io.FileWriter;


public class WriteFileDemo {
    public static void main(String[] args) {
        try(BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("./src/com/neusoft/zhoushihao/class0819/a.txt"))){
            String msg = "kitty";
            for (int i = 0; i < 100; i++) {
                bufferedWriter.write(msg);
                bufferedWriter.newLine();
            }
        }catch (Exception e){
            throw new RuntimeException(e);
        }

    }
}
